const loginMiddleWare = ((req,res,next) => {
    if(!req.headers.authorization){
        return res.send({code:4001,msg:'请先登录',data:null});
    }else{
        next();
    }
})
module.exports = loginMiddleWare;